package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjFactoryProduct;
import com.zb.extend.FactoryProductExtend;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 厂商产品关联表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2024-04-13
 */
@Repository
public interface ZjFactoryProductMapper extends BaseMapper<ZjFactoryProduct> {

    /**
     * 根据产品ID获取关联的商家
     * @param productIds 产品ID
     * @return
     */
    List<FactoryProductExtend> getByProductIds(@Param("productIds") List<Long> productIds);
}
